<?php 
namespace Home\Model;
use Think\Model;

	class CommentsModel extends Model {
		 protected $_validate = array(	
    	//array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间])
    	array('style','require','类型名称必选！','1','','3'),
    	array('name','require','称呼必填！','1','','3'),
        array('content','5,120','字数在5~120之间','1','length','3') ,     
             
		);
	}

?>